package June;

public class Test_9_1 {
    public static void main(String[] args) {
        //类与对象的使用

        //创建第一只小猫
        Cat cat1 = new Cat();
        cat1.name = "小白";
        cat1.age = 3;
        cat1.color = "白色";
        //创建第二只小猫
        Cat cat2 = new Cat();
        cat2.name = "小花";
        cat2.age = 2;
        cat2.color = "花色";

        System.out.println("第一只小猫：" + cat1.name + "\t" + cat1.age + "\t" + cat1.color);
        System.out.println("第二只小猫：" + cat2.name + "\t" + cat2.age + "\t" + cat2.color);

    }
}

class Cat {
    String name;
    int age;
    String color;
}